Current Location: Home> Function Categories> pi

pi

Get the pi value
Name:pi
Category:math
Programming Language:php
One-line Description:Returns the value of Pi.

Definition and usage

The pi() function returns the value of pi.

Example

 <?php
echo pi ( ) ;
?>

Try it yourself

grammar

 pi ( )

illustrate

Returns an approximation of pi. The float accuracy of the return value is determined by the precision directive in php.ini. The default value is 14. You can also use the M_PI constant that produces the exact same result as pi() .

Similar Functions
  • Absolute value abs

    abs

    Absolutevalue
  • Find the maximum value max

    max

    Findthemaximumvalue
  • Sow a better random number generator seed mt_srand

    mt_srand

    Sowabetterrandomnumb
  • Square root sqrt

    sqrt

    Squareroot
  • Anyway atan

    atan

    Anyway
  • Find the minimum value min

    min

    Findtheminimumvalue
  • Exponential expressions pow

    pow

    Exponentialexpressio
  • Get the pi value pi

    pi

    Getthepivalue
Popular Articles